<?php
/**
 * Extention to the PDOException-class to write errors
 * to a file.
 */
class ePDOException extends PDOException
{
	/**
	 * Writes the PDOException error to a file.
	 * @param PDOException $e
	 */
	public function writeMessage (PDOException $e)
	{
		//file_put_contents ('ePDOException.log', date ('H:i:s @ d-m-Y') . PHP_EOL . $e -> getMessage () . PHP_EOL . '---' . PHP_EOL, FILE_APPEND);
		echo $e -> getMessage () . '<br />' . PHP_EOL;
	}
}